package com.shop.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.shop.pojo.User;

import java.util.List;

public interface UserService {

    public User findUserName(String username);

    public void add(User user);

    public Page<User> pageQuery(Integer currentPage, Integer pageSize, String queryString);

    public void deleteById(Integer id);

    public void edit(User user);

    public User findById(Integer id);

    public List<User> findAll();

    User findByUsername(String username);

    Integer getUserId(String name);
}
